# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy



class ChannelItem(scrapy.Item):
    # {'id': 21, 'name': '体育', 'channel_count': '70'}
    id = scrapy.Field()
    name = scrapy.Field()
    channel_count = scrapy.Field()

class SubChannelItem(scrapy.Item):
    # "id": 8892,
    # 				"name": "郭德纲",
    # 				"cover": "http://i0.hdslb.com/bfs/tag/a1858174baa89ecddf3e38453120c193be0bca0d.jpg",
    # 				"background": "http://i0.hdslb.com/bfs/tag/9c3541ab7e955c3ab6fa44387be10f85e922ad1a.png",
    # 				"subscribed_count": 133596,
    # 				"archive_count": "8.5万",
    # 				"featured_count": 485,
    # 				"theme_color": "#67CFCC",
    # 				"archives": []
    cid = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()
    cover = scrapy.Field()
    subscribed_count = scrapy.Field()
    archive_count = scrapy.Field()
    featured_count = scrapy.Field()
    # view_count = scrapy.Field()


class SubChannelVideoItem(scrapy.Item):
    #   "id":247466336,
    #   "name":"樊振东决赛再战咸有成，依旧不轻松！神球迭出艰难取胜！",
    #   "cover":"http://i0.hdslb.com/bfs/archive/4f42789bb3c268681987a7d64e2dc29343e14261.jpg",
    #   "view_count":"2.1万",
    #   "like_count":"544",
    #   "duration":"7:56",
    #   "author_name":"迷茫先生233",
    #   "author_id":396148567,
    #   "bvid":"BV1Dv411j72N",
    #   "card_type":"archive",
    #   "sort":"hot",
    #   "filt":0}
    cid = scrapy.Field()
    scid = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()
   # cover = scrapy.Field()
    # view_count = scrapy.Field()
    # like_count = scrapy.Field()
   #duration = scrapy.Field()
    author_name = scrapy.Field()
    author_id = scrapy.Field()
    bvid = scrapy.Field()
    # card_type = scrapy.Field()
    # sort = scrapy.Field()
    # filt = scrapy.Field()

class SpiderItem(scrapy.Item):
    # define the fields for your item here like:
    mid = scrapy.Field()
    name = scrapy.Field()
    sex = scrapy.Field()
    face = scrapy.Field()
    sign = scrapy.Field()
    vip = scrapy.Field()
    follower = scrapy.Field()
    following = scrapy.Field()
    view = scrapy.Field()
    likes = scrapy.Field()


